package com.baizhi.wd.servlet;

import javax.servlet.RequestDispatcher;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ForwardA extends HttpServlet {
	public void service(HttpServletRequest request,HttpServletResponse response){
		try{
		//1获取client的请求数据
		request.setCharacterEncoding("utf-8");
		//2 调用业务类的方法，检查帐号
		//3 检查结果
		request.setAttribute("list", "list的对象");
		RequestDispatcher rd= request.getRequestDispatcher("/per/forwardb");
		rd.forward(request, response);
		}catch(Exception e){e.printStackTrace();}
	}
}
